this._folderSettings.connect('changed::folder-children', () => {
Main.queueDeferredWork(this._redisplayWorkId);
});
+
+ this._nEventBlockerInhibits = 0;
}
_redisplay() {
for (let i = 0; i < this.folderIcons.length; i++)
this.folderIcons[i].adaptToSize(availWidth, availHeight);
}
+
+ inhibitEventBlocker() {
+ this._nEventBlockerInhibits++;
+ this._eventBlocker.visible = this._nEventBlockerInhibits == 0;
+ }
+
+ uninhibitEventBlocker() {
+ if (this._nEventBlockerInhibits === 0)
+ throw new Error('Not inhibited');
+
+ this._nEventBlockerInhibits--;
+ this._eventBlocker.visible = this._nEventBlockerInhibits == 0;
+ }
};
Signals.addSignalMethods(AllView.prototype);